\name{SetPoints}
\alias{SetPoints}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Sets the coordinate points of the Geometry
}
\encoding{UTF-8}
\description{
设置几何对象的空间点坐标信息。
}
\usage{
SetPoints(obj, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{obj}{
  几何对象
}
  \item{\dots}{
  对于\code{\link{GeoPoint-class}}对象，则分别设置 x和y值。
  对于\code{\link{GeoLine-class}} 和 \code{\link{GeoRegion-class}} 对象，则设置包含 xy 值的 matrix 对象和子对象点数目数组，其中matrix中第一列存储x值，第二列存储y值。
}
}
\details{
%%  ~~ If necessary, more details than the description above ~~
}
\value{
成功返回True，否则返回False。
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
%%  ~~further notes~~
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
\code{\link{GetPoints}}
}
\examples{

pnts <- matrix(data=1:20, nrow=10, ncol=2)
line <- CreateLine(pnts, c(10))
ps <- matrix(nrow=10, ncol=2)
xs <- c(110,200)
ys <- c(30,40,50,60,80,90,100,200,30,10)
ps[,1] <- xs
ps[,2] <- ys
SetPoints(line, ps, c(5,5))

geo.pnt <- CreateGeometry("Point")
SetPoints(geo.pnt, 10, 20)

}

% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ supermap }% use one of  RShowDoc("KEYWORDS")
\keyword{ Geometry }% __ONLY ONE__ keyword per line
